<p>
{foreach from=$games key=myId item=i name=gameT}
	{if $smarty.foreach.gameT.first}
		<table class="liste">
			<caption>Mac Sonuclari</caption>
			<tr>
				<th>Tarih</th><th>Ev Sahibi</th><th colspan=2>Skor</th><th>Konuk</th><th></th>
			</tr>
	{/if}
	<tr>
	<form method="POST" action="games.php">
		<input type="hidden" name="id" value="{$i->id}" />
		<input type="hidden" name="action" value="resultUpdate" />
		<td>{$i->date|date_format:"%d/%m/%Y %H:%M"}</td>
		<td>{$i->home_team->team}</td>
		<td>
			<input type="text" name="home_team_score" value="{$i->home_score}" size="2"/>
		</td>
		<td>
			<input type="text" name="away_team_score" value="{$i->away_score}" size="2"/>
		</td>
		<td>{$i->away_team->team}</td>
		<td>
			<input type="Submit" value="Gonder" title="Skoru ekle"/>
		</td>
	</form>		
	</tr>
	{if $smarty.foreach.gameT.last}
		</table>
	{/if}
{/foreach}
</p>